package com.software.course.service.impl;

import com.software.course.dao.StudentDao;
import com.software.course.enity.Course;
import com.software.course.enity.File;
import com.software.course.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public List<Course> listCourse() {
        return studentDao.listCourse();
    }

    @Override
    public void saveFile(File file) {
        studentDao.saveFile(file);
    }
}
